import React, { Component } from 'react'
import SearchState from './SearchState'
import {SearchlistStyle} from './SearchlistStyle.js'
@SearchState
 class Searchlist extends Component {
    render() {
        return (
            <>
                {
                    this.props.searchs &&(
                        this.props.searchs.map(item=>{
                            return(
                                <SearchlistStyle>
                                    <div>
                                        <span>{item.get('name')}</span>
                                        <span>{item.get('gz')}</span>
                                    </div>
                                  
                                    <div>
                                        <img src={item.get('img')} alt="" />
                                    </div>
                                    <div>
                                        <span>{item.get('h')}</span>
                                      
                                    </div>
                                </SearchlistStyle>
                            )
                        })
                    )
                }
            </>
        )
    }
}
export default Searchlist